﻿#ifndef U_QualityTimeChart_H
#define U_QualityTimeChart_H

#include "Window/mywidget.h"
#include "u_chart.h"
#include "u_chartview.h"

class QualityTimeChart : public MyWidget
{
    Q_OBJECT
public:
    explicit QualityTimeChart(Equipment *equ, QWidget *parent = nullptr);
    ~QualityTimeChart();
signals:

public slots:
    void OnTimer();

private:

    void InitWidget();
    void SetupConnections();
    void Initialize();

    Equipment   *equ;
    QTimer      *timer;

    Chart           *chart;   //画布
    QSplineSeries   *series1;  //线
    QSplineSeries   *series2;  //线
    QVector<QPointF> points1;
    QVector<QPointF> points2;
};

#endif // U_QualityTimeChart_H
